home *** CD-ROM | disk | FTP | other *** search
- /*
- ** Simple routine to check if the viewer is there
- **
- ** Nick Thompson, 2/4/96
- */
-
- /* all we need is this header - to use the viewer */
- #include <QD3DViewer.h>
-
- /*------------------------------------------------------------*/
-
- /*
- ** This is a handy little routine to use
- ** Gestalt to check to see if the viewer is
- ** properly installed
- */
-
- Boolean IsQD3DViewerInstalled()
- {
- OSErr theErr;
- long gesResponse;
-
- if ((theErr = Gestalt( gestaltQD3DViewer,&gesResponse ))!=noErr)
- return false;
-
- return (gesResponse == gestaltQD3DViewerAvailable);
- }
-
-